package com.tinem.platform.client.security;

import com.tinem.platform.module.pojo.vo.security.cypher.CypherReq;
import com.tinem.platform.module.pojo.vo.security.cypher.CypherRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: platform
 * @description: ${description}
 * @author: eden#can
 * @Slogan: 没有所谓失败，除非你不再尝试
 * @date: 2022-01-02 16:28
 **/
@FeignClient(value = "platform-cloud-service-security",contextId = "platform-cloud-service-security.cypherClient")
@RequestMapping("/cypher")
public interface CypherClient {

    @PostMapping("/encryption.api")
    @ResponseBody
    CypherRes encryption(@RequestBody CypherReq cypherReq);


    @PostMapping("/decrypt.api")
    @ResponseBody
    CypherRes decrypt(@RequestBody CypherReq cypherReq);
}
